﻿@using QDT.Common
@model IPagedList<QDT.Core.Projects.ProjectAgency>
           
<div class="main_title">
    贷款分类列表</div>
<div class="blank5">
</div>
<div class="button_row">
    @Html.ActionLink("新增", "AddAgency", new { }, new { @class = "button" })
</div>
<div class="blank5">
</div>
<div class="grid_box">
    <div class="grid_top">
    </div>
    @Html.Grid(Model).Columns(column =>
                                  {
                                      column.CheckBox(x => x.ID);
                                      column.For(x => x.ID).Named("编号").HeaderAttributes(style => "width:50px;");
                                      column.For(x => Html.ActionLink(x.Name, "EditAgency", new { id = x.ID })).Named("名称").SortColumnName("Name");
                                      column.For(x => x.Legal).Named("法人代表").SortColumnName("Legal");
                                      column.For(x => x.Address).Named("地址").SortColumnName("Address");
                                      column.For(x => x.Details).Named("详情").SortColumnName("Details"); ;
                                      column.Buttons(btns => btns.Add(x => Html.ActionLink("编辑", "EditAgency", new { id = x.ID }))
                                                                                    .Add(x => Html.ActionLink("相关图片", "Images", new {id = x.ID}))
                                          );
                                  }).Complex(ViewData)
    <div class="grid_foot">
    </div>
</div>
<div class="blank5">
</div>
@Html.Pager(Model)
